package com.nuanshui.heatedloan.search.facade.model;

import java.io.Serializable;
import java.util.HashMap;

import com.google.common.collect.Maps;
import com.nuanshui.heatedloan.search.base.enums.SearchParamType;

public class SearchParams  implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1971448366639772204L;

	private SearchParamType searchType;
	
	private HashMap<String,Float> fields = Maps.newHashMap();
	
	private String value;
	
	public void addField(String field){
		fields.put(field,-1f);
	}
	
	public void addField(String field,float boost){
		fields.put(field, boost);
	}

	public SearchParamType getSearchType() {
		return searchType;
	}

	public void setSearchType(SearchParamType searchType) {
		this.searchType = searchType;
	}
	public HashMap<String, Float> getFields() {
		return fields;
	}

	public void setFields(HashMap<String, Float> fields) {
		this.fields = fields;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	

}
